/*
 * An XML document type.
 * Localname: ConnectToParametersType
 * Namespace: http://www.hpsearch.org/schemas/2006/05/BSA
 * Java type: cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument
 *
 * Automatically generated - do not modify.
 */
package cgl.narada.mgmt.schemas.bsa.impl;
/**
 * A document containing one ConnectToParametersType(@http://www.hpsearch.org/schemas/2006/05/BSA) element.
 *
 * This is a complex type.
 */
public class ConnectToParametersTypeDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument
{
    
    public ConnectToParametersTypeDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CONNECTTOPARAMETERSTYPE$0 = 
        new javax.xml.namespace.QName("http://www.hpsearch.org/schemas/2006/05/BSA", "ConnectToParametersType");
    
    
    /**
     * Gets the "ConnectToParametersType" element
     */
    public cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType getConnectToParametersType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType target = null;
            target = (cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType)get_store().find_element_user(CONNECTTOPARAMETERSTYPE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "ConnectToParametersType" element
     */
    public void setConnectToParametersType(cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType connectToParametersType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType target = null;
            target = (cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType)get_store().find_element_user(CONNECTTOPARAMETERSTYPE$0, 0);
            if (target == null)
            {
                target = (cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType)get_store().add_element_user(CONNECTTOPARAMETERSTYPE$0);
            }
            target.set(connectToParametersType);
        }
    }
    
    /**
     * Appends and returns a new empty "ConnectToParametersType" element
     */
    public cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType addNewConnectToParametersType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType target = null;
            target = (cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType)get_store().add_element_user(CONNECTTOPARAMETERSTYPE$0);
            return target;
        }
    }
    /**
     * An XML ConnectToParametersType(@http://www.hpsearch.org/schemas/2006/05/BSA).
     *
     * This is a complex type.
     */
    public static class ConnectToParametersTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements cgl.narada.mgmt.schemas.bsa.ConnectToParametersTypeDocument.ConnectToParametersType
    {
        
        public ConnectToParametersTypeImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName TARGETBROKERHOST$0 = 
            new javax.xml.namespace.QName("", "targetBrokerHost");
        private static final javax.xml.namespace.QName TARGETBROKERPORT$2 = 
            new javax.xml.namespace.QName("", "targetBrokerPort");
        private static final javax.xml.namespace.QName LINKTYPE$4 = 
            new javax.xml.namespace.QName("", "linkType");
        private static final javax.xml.namespace.QName LEVEL$6 = 
            new javax.xml.namespace.QName("", "level");
        
        
        /**
         * Gets the "targetBrokerHost" element
         */
        public java.lang.String getTargetBrokerHost()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TARGETBROKERHOST$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "targetBrokerHost" element
         */
        public org.apache.xmlbeans.XmlString xgetTargetBrokerHost()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TARGETBROKERHOST$0, 0);
                return target;
            }
        }
        
        /**
         * Sets the "targetBrokerHost" element
         */
        public void setTargetBrokerHost(java.lang.String targetBrokerHost)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TARGETBROKERHOST$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TARGETBROKERHOST$0);
                }
                target.setStringValue(targetBrokerHost);
            }
        }
        
        /**
         * Sets (as xml) the "targetBrokerHost" element
         */
        public void xsetTargetBrokerHost(org.apache.xmlbeans.XmlString targetBrokerHost)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TARGETBROKERHOST$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TARGETBROKERHOST$0);
                }
                target.set(targetBrokerHost);
            }
        }
        
        /**
         * Gets the "targetBrokerPort" element
         */
        public java.lang.String getTargetBrokerPort()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TARGETBROKERPORT$2, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "targetBrokerPort" element
         */
        public org.apache.xmlbeans.XmlString xgetTargetBrokerPort()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TARGETBROKERPORT$2, 0);
                return target;
            }
        }
        
        /**
         * Sets the "targetBrokerPort" element
         */
        public void setTargetBrokerPort(java.lang.String targetBrokerPort)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TARGETBROKERPORT$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TARGETBROKERPORT$2);
                }
                target.setStringValue(targetBrokerPort);
            }
        }
        
        /**
         * Sets (as xml) the "targetBrokerPort" element
         */
        public void xsetTargetBrokerPort(org.apache.xmlbeans.XmlString targetBrokerPort)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TARGETBROKERPORT$2, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TARGETBROKERPORT$2);
                }
                target.set(targetBrokerPort);
            }
        }
        
        /**
         * Gets the "linkType" element
         */
        public java.lang.String getLinkType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKTYPE$4, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "linkType" element
         */
        public org.apache.xmlbeans.XmlString xgetLinkType()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKTYPE$4, 0);
                return target;
            }
        }
        
        /**
         * Sets the "linkType" element
         */
        public void setLinkType(java.lang.String linkType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LINKTYPE$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LINKTYPE$4);
                }
                target.setStringValue(linkType);
            }
        }
        
        /**
         * Sets (as xml) the "linkType" element
         */
        public void xsetLinkType(org.apache.xmlbeans.XmlString linkType)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LINKTYPE$4, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LINKTYPE$4);
                }
                target.set(linkType);
            }
        }
        
        /**
         * Gets the "level" element
         */
        public int getLevel()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEVEL$6, 0);
                if (target == null)
                {
                    return 0;
                }
                return target.getIntValue();
            }
        }
        
        /**
         * Gets (as xml) the "level" element
         */
        public org.apache.xmlbeans.XmlInt xgetLevel()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LEVEL$6, 0);
                return target;
            }
        }
        
        /**
         * Sets the "level" element
         */
        public void setLevel(int level)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LEVEL$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LEVEL$6);
                }
                target.setIntValue(level);
            }
        }
        
        /**
         * Sets (as xml) the "level" element
         */
        public void xsetLevel(org.apache.xmlbeans.XmlInt level)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlInt target = null;
                target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(LEVEL$6, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(LEVEL$6);
                }
                target.set(level);
            }
        }
    }
}
